package com.example.lin.enums;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Getter
@AllArgsConstructor
@NoArgsConstructor
@ToString
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ResultEnum {
    SUCCESS(200, "操作成功！"),

    FAIL(500, "操作失败！"),
    ;


    private int code;


    private String message;
}
